using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SiteECSWeb;

public partial class AdminMang_CreateMemeberShip : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            #region SiteMap
            this.SiteMapNodeProvider = SiteMapProviderNames.ListMXmlSiteMapProvider.ToString();
            SiteMapPath1.SiteMapProvider = SiteMapNodeProvider;
            #endregion
        }
    }
    protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
    {
    }
    protected void CreateUserWizard1_CreatingUser(object sender, LoginCancelEventArgs e)
    {
        foreach (ListItem RoleList in cblRoles.Items)
        {
            if (RoleList.Selected)
            {
                Roles.AddUserToRole(CreateUserWizard1.UserName, RoleList.Text); 
            }
        }
    }
}
